package com.cug.smartranch.animal.admin.dto.req;

import com.alibaba.fastjson2.JSON;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "环境监测记录查询接口请求参数实体")
public class EnvironmentMonitoringReqDTO {
    /**
     * 起始时间
     */
    @Schema(description = "起始时间（当天0点的时间）",
            example = "1732982400000",
            required = true)
    private Long startDate;
    /**
     * 结束时间
     */
    @Schema(description = "结束时间（当天0点的时间）",
            example = "1733587200000",
            required = true)
    private Long endDate;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
